﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：TongTongMallStartupConfigurationExtensions.cs
// 功能描述：TongTongMall.MallWeb
// 
// Create User：jym 2017/02/23
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TongTongMall.Configuration.Startup;

namespace TongTongMall.MallWeb.WebApi.Configuration
{
    public static class TongTongMallStartupConfigurationExtensions
    {
        public static ITongTongMallStartupConfiguration MallWeb(this IModuleConfigurations configurations)
        {
            return configurations.Configuration.GetOrCreate("Modules.TongTongMall.Web", () => configurations.Configuration.IocManager.Resolve<ITongTongMallStartupConfiguration>());
        }
    }
}